package com.yu.crm.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author zds
 * @since 2021-03-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Ticketinfo对象", description="")
public class Ticketinfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自己的主键")
    @TableId(value = "oid", type = IdType.AUTO)
    private Long oid;

    @ApiModelProperty(value = "票务主键")
    @TableId(value = "id")
    private Integer id;

    @ApiModelProperty(value = "车站名")
    @TableId(value = "station_name")
    private String stationName;

    @ApiModelProperty(value = "车次")
    @TableField("bus_num")
    private String busNum;

    @ApiModelProperty(value = "座位号")
    @TableField("seat_num")
    private String seatNum;

    @ApiModelProperty(value = "票务标示")
    @TableField("ticket_id")
    private String ticketId;

    @ApiModelProperty(value = "姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "证件号码")
    @TableField("identity_id")
    private String identityId;

    @ApiModelProperty(value = "购票时间")
    @TableField("buy_time")
    private LocalDateTime buyTime;

    @ApiModelProperty(value = "发车时间")
    @TableField("bus_start_time")
    private LocalDateTime busStartTime;

    @ApiModelProperty(value = "目的地车站名称")
    @TableField("dest_station_name")
    private String destStationName;

    @ApiModelProperty(value = "状态(1表示购票、2表示改签、0表示退票)")
    @TableField("status")
    private String status;

    @ApiModelProperty(value = "证件类型")
    @TableField("certi_type")
    private String certiType;

    @ApiModelProperty(value = "票价")
    @TableField("price")
    private Double price;

    @ApiModelProperty(value = "候车厅")
    @TableField("wait_room_num")
    private String waitRoomNum;

    @ApiModelProperty(value = "检票口")
    @TableField("check_entrance")
    private String checkEntrance;

    @ApiModelProperty(value = "创建时间")
    @TableField("gmt_create")
    private LocalDateTime gmtCreate;

    @ApiModelProperty(value = "是否删除")
    @TableField("is_deleted")
    private Integer isDeleted;

    @ApiModelProperty(value = "车站编码")
    @TableField("station_code")
    private String stationCode;

    @ApiModelProperty(value = "插入时间")
    @TableField("insert_Time")
    private LocalDateTime insertTime;

}
